home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Demos / ByCompany / ActiveIngredients / communicae / communicae.app / DemoFiles / tn3270.cae < prev    next >
Text File  |  1993-09-21  |  3KB  |  121 lines

  1. #! communicae
  2.  
  3. # This file makes using the Unix "tn3270" front end to an IBM System 370
  4. # mainframe a little bit easier.  It was intended for use via TCP/IP,
  5. # with a vanilla copy of TN3270, which convert 3270 to  VT100 escape
  6. # sequences, but has not been specially programmed to recognize all the
  7. # VT100 keys.  The problem people get hung up on is that for some reason
  8. # whoever did tn3270 did not use the same keyboard setup that the Yale ASCII
  9. # system uses.  Therefore, people have accepted the control characters
  10. # as the standard way to do business with TN3270, and we must use them too.
  11. # This setup file also adds a visual keypad with the first 12 PF keys,
  12. # and makes Delete simulate a single backspace, while shift+delete does
  13. # a delete-char.  Command+top-row-numbers also simulate PF keys, as do
  14. # the F-keys on a PC keyboard. If you hold down the Shift key, you'll get
  15. # PF13-PF24 instead.  The keypad Enter key does a clear screen, and the
  16. # arrows do TN3270 ^H/J/K/L instead of the normal VT arrow sequences.
  17.  
  18. clearall
  19. pty = 1
  20. title = "IBM 3270 Emulator (tn3270)"
  21. login = "tn3270^M%w'>'open %?\"Enter Host Name:\"^M"
  22. logout = "^C%300pquit^M%w'^J'%300pexit"
  23. sendxoff = no
  24. receivexoff = no
  25. bskey
  26. GRset = 2
  27. tabwidth = 8
  28. ginterminator = 1
  29. font = "Courier"
  30. fontsize = 12
  31. leading = 3
  32. rows = 24
  33. columns = 80
  34. sizelock = 3
  35. winx = 284
  36. winy = 162
  37. keycols = 3
  38. keyx = 16
  39. keyy = 78
  40. scrollback = 2
  41. tranProtocol = 1
  42. recvProtocol = 1
  43. droptype = 2
  44. f3 = "^K"    # Up
  45. f4 = "^J"    # Down
  46. f5 = "^L"    # Right
  47. f6 = "^H"    # Left
  48. f7 = "^I%|^B"    # Tab
  49. f58 = "^H ^H%|^D%|^E"    # Delete
  50. f59 = "^Z%|^M"    # Enter
  51. # PC F-keys are bound to visual keypad items (which are PF key equivalents)
  52. f77 = "%257f"    # F1
  53. f78 = "%259f"    # F2
  54. f79 = "%261f"    # F3
  55. f80 = "%263f"    # F4
  56. f81 = "%265f"    # F5
  57. f82 = "%267f"    # F6
  58. f83 = "%269f"    # F7
  59. f84 = "%271f"    # F8
  60. f85 = "%273f"    # F9
  61. f86 = "%275f"    # F10
  62. f87 = "%277f"    # F11
  63. f88 = "%279f"    # F12
  64. # Command+Numbers and Command+Shift+Numbers are bound to same keypad items
  65. f161 = "%257f"    # Cmd+!
  66. f163 = "%261f"    # Cmd+#
  67. f164 = "%263f"    # Cmd+$
  68. f165 = "%265f"    # Cmd+%
  69. f166 = "%269f"    # Cmd+&
  70. f168 = "%273f"    # Cmd+(
  71. f169 = "%275f"    # Cmd+)
  72. f170 = "%271f"    # Cmd+*
  73. f171 = "%279f"    # Cmd++
  74. f173 = "%277f"    # Cmd+-
  75. f176 = "%275f"    # Cmd+0
  76. f177 = "%257f"    # Cmd+1
  77. f178 = "%259f"    # Cmd+2
  78. f179 = "%261f"    # Cmd+3
  79. f180 = "%263f"    # Cmd+4
  80. f181 = "%265f"    # Cmd+5
  81. f182 = "%267f"    # Cmd+6
  82. f183 = "%269f"    # Cmd+7
  83. f184 = "%271f"    # Cmd+8
  84. f185 = "%273f"    # Cmd+9
  85. f189 = "%279f"    # Cmd+=
  86. f192 = "%259f"    # Cmd+@
  87. f222 = "%267f"    # Cmd+^
  88. f223 = "%277f"    # Cmd+_
  89. # Note keypad items have base, shifted, command, & command-shifted states.
  90. # This allows them to handle all keyboard keys which are directed to them.
  91. L0 = "    PF1    "
  92. K0 = "^[1%|^F13%8|^[1%|^F13"
  93. L1 = "    PF2    "
  94. K1 = "^[2%|^F14%8|^[2%|^F14"
  95. L2 = "    PF3    "
  96. K2 = "^[3%|^F15%8|^[3%|^F15"
  97. L3 = "    PF4"
  98. K3 = "^[4%|^F16%8|^[4%|^F16"
  99. L4 = "    PF5"
  100. K4 = "^[5%|^F17%8|^[5%|^F17"
  101. L5 = "    PF6"
  102. K5 = "^[6%|^F18%8|^[6%|^F18"
  103. L6 = "    PF7"
  104. K6 = "^[7%|^F19%8|^[7%|^F19"
  105. L7 = "    PF8"
  106. K7 = "^[8%|^F20%8|^[8%|^F20"
  107. L8 = "    PF9"
  108. K8 = "^[9%|^F21%8|^[9%|^F21"
  109. L9 = "   PF10"
  110. K9 = "^[0%|^F22%8|^[0%|^F22"
  111. L10 = "   PF11"
  112. K10 = "^[-%|^F23%8|^[-%|^F23"
  113. L11 = "   PF12"
  114. K11 = "^[=%|^F24%8|^[=%|^F24"
  115. L12 = "    PA1"
  116. K12 = "^P1"
  117. L13 = "    PA2"
  118. K13 = "^P2"
  119. L14 = "  Clear"
  120. K14 = "^Z"
  121.